package com.yeyks.hotel.service;

import com.yeyks.hotel.dal.domain.HotelInfo;
import com.yeyks.hotel.dal.domain.CashOutHotel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeyks.common.ajax.AjaxResponseBody;
import com.yeyks.common.param.CashOutHotelSelectForHotelPageParam;
import com.yeyks.common.param.CashOutHotelSelectForManagePageParam;
import org.springframework.transaction.annotation.Transactional;


/**
 * <p>
 * 酒店提现订单表 服务类
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
public interface CashOutHotelService extends IService<CashOutHotel> {

    AjaxResponseBody selectForManagePage(CashOutHotelSelectForManagePageParam cashOutHotelSelectForManagePageParam);

    AjaxResponseBody selectForHotelPage(CashOutHotelSelectForHotelPageParam cashOutHotelSelectForHotelPageParam);

    @Transactional(rollbackFor = Exception.class)
    AjaxResponseBody cashWithdrawalOperation(HotelInfo hotelInfo, Integer amount);

    @Transactional(rollbackFor = Exception.class)
    AjaxResponseBody updateStatus(Integer id, Integer status, String remark);
}
